﻿@{
    ViewBag.Title = "小博客 - 碎言碎语";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@using MyBlog
<link href="~/Content/Blog/words.css" rel="stylesheet" />
<div class="m-main">
    <div class="umess-head">
        碎言碎语
    </div>
    <div class="m-main-tip">
        <div class="m-main-tip-left">
            记录生活，记录回忆！
        </div>
        <div class="m-main-tip-right">
            @if (UserSession.LoginUserInfo!=null&&UserSession.LoginUserInfo.IsAdmin)
            {
                <span onclick="showSendView(0)">管理员发表 <i class="icon-edit"></i></span>
            }
        </div>
    </div>
    <div id="dvSendView" style="display:none;background-color:white; width:60%; border:solid 2px #226822;padding:5px;position:absolute; z-index:899">
        <div style="clear:both; border-bottom:#CCC 1px solid;height:30px;line-height:30px; padding-left:10px;">
            @if (UserSession.LoginUserInfo != null && UserSession.LoginUserInfo.IsAdmin)
            {
                @:当前管理员：<span>@UserSession.LoginUserInfo.NickName</span>
            }
        </div>
        <div style="clear:both; padding:10px;">
            <script id="content" name="content" style="height:180px;width:100%; margin-bottom:5px;" type="text/plain">
            </script>
            <div style="clear:both; padding-bottom:3px;">
                <input type="hidden" id="hID" value="0" />
                <input type="button" id="btnok" value="发表" onclick="sendWord()" class="btnsubmit" />
                <input type="button" id="btnClose" value="关闭" onclick="closeSendView()" class="btnsubmit" />
            </div>
        </div>
    </div>
    <div id="dvWordList">
    </div>
    <div id="laypager" class="Word-pager"></div>
    <input type="hidden" id="hpage" value="@ViewBag.TotalPage" />
</div>
<script src="~/Scripts/Blog/words.js"></script>